package com.example.bookdemo.controller.utils;

import com.example.bookdemo.domain.Book;
import lombok.Data;

/**
 * @ Author:郭子木
 * @ Date:2022/6/8
 * @ Time:8:25
 * @ Name:R
 * @ Description:
 */
@Data
public class R {
    private Boolean flag;
    private Object data;
    private String msg;

    public R()
    {}
    public R(Boolean flag)
    {
        this.flag=flag;
    }
    public R(Boolean flag,Object data)
    {
        this.flag=flag;
        this.data=data;
    }
    public R(Boolean flag,String msg)
    {
        this.flag=flag;
        this.msg=msg;
    }
    public R(String msg)
    {
        this.flag=false;
        this.msg=msg;
    }
}
